package com.qxkj.mysql.multidb.dbRoute.base;

import java.io.Serializable;

/**
 * Copyright © 2018年 ziniuxiaozhu. All rights reserved.
 *
 * @Author 临江仙 hzqiuxm@163.com
 * 所有pojo必须继承此bean 才能使用分库分表
 * @Date 2018/9/4 18:15
 */
public class BaseDomain implements Serializable {

    private String userNum;
    private String tableIndex;

    public String getUserNum() {
        return userNum;
    }

    public void setUserNum(String userNum) {
        this.userNum = userNum;
    }

    public String getTableIndex() {

        this.tableIndex = DbContextHolder.getTableIndex();
        return tableIndex;
    }

    public void setTableIndex(String tableIndex) {

        this.tableIndex = tableIndex;
    }
}
